package com.dingreading.cloud.app.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "member_action_log")
public class MemberActionLog implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;


    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;


    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date readTime;

    /**
     * 行为类型
     * 1.读书记录
     */
    @ApiModelProperty(value = "行为类型 1.读书记录")
    private Integer actionType;

    /**
     * 公司uid
     */
    @ApiModelProperty(value = "公司uid")
    private String corpUid;

    /**
     * 门店id
     */
    @ApiModelProperty(value = "门店id")
    private Long storeId;

    /**
     * 门店uid
     */
    @ApiModelProperty(value = "门店uid")
    private String storeUid;

    /**
     * 门店名称
     */
    @ApiModelProperty(value = "门店名称")
    private String storeName;

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id")
    private Long memberId;

    /**
     * 会员uid
     */
    @ApiModelProperty(value = "会员uid")
    private String memberUid;

    /**
     * 会员真实姓名
     */
    @ApiModelProperty(value = "会员真实姓名")
    private String fullName;

    /**
     * 会员姓名
     */
    @ApiModelProperty(value = "会员姓名")
    private String memberName;

    /**
     * 手机
     */
    @ApiModelProperty(value = "手机")
    private String phone;

    /**
     * 总部书籍id
     */
    @ApiModelProperty(value = "总部书籍id")
    private Long booksId;

    /**
     * 门店书籍id
     */
    @ApiModelProperty(value = "门店书籍id")
    private Long storeBookId;

    /**
     * 书籍名
     */
    @ApiModelProperty(value = "书籍名")
    private String bookName;

    /**
     * 书籍封面
     */
    @ApiModelProperty(value = "书籍封面")
    private String bookImg;

    /**
     * isbn
     */
    @ApiModelProperty(value = "isbn")
    private String isbn;

    /**
     * 书号
     */
    @ApiModelProperty(value = "书号")
    private String bookNum;

    /**
     * 作者
     */
    @ApiModelProperty(value = "作者")
    private String author;

    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id")
    private Long bookLabelId;

    /**
     * 分类
     */
    @ApiModelProperty(value = "分类id")
    private String bookLabelName;

    /**
     * 书种id
     */
    @ApiModelProperty(value = "书种id")
    private Long bookTypeId;

    /**
     * 书种
     */
    @ApiModelProperty(value = "书种")
    private String bookType;

    /**
     * 状态
     * 1.开始读书 2.结束读书
     */
    @ApiModelProperty(value = "状态1.开始读书 2.结束读书")
    private Integer status;

    /**
     * 读书时长；分
     */
    @ApiModelProperty(value = "读书时长；分")
    private Long duration;

    @ApiModelProperty(value = "总部书籍")
    @Column(ignore = true)
    private Books books;

}
